import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import '@/mock/mock'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn';
import weekday from 'dayjs/plugin/weekday';
import localeData from 'dayjs/plugin/localeData';
import { registerMicroApps, start } from "qiankun"
import mDirective from './directives'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'


dayjs.locale('zh-cn') 
dayjs.extend(weekday);
dayjs.extend(localeData)

createApp(App).use(store).use(router).use(Antd).use(ElementPlus).use(mDirective as any).mount("#app");

registerMicroApps([
  {
    name: "react-app",
    entry: '//localhost:3000',
    container: '#react',
    activeRule: '/react',
    props: {}
  }
])

start()
